package com.example.fashionshoes.pojo.vo;

import com.alibaba.fastjson2.JSONArray;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class GoodsDetailVO {
    private Integer id;
    private String name;
    private String desc;
    private BigDecimal price;
    private BigDecimal oldPrice;
    private String brandName;
    private String stock;
    private Integer salesCount;
    private Integer commentCount;
    private Integer collectCount;
    private String img;
    //分类信息
    private Integer categoryId;
    private String categoryName;
    private Integer parentId;
    private Integer categoryParentId;
    private String categoryParentName;
    //sku信息
    private JSONArray specs;
    //
    private JSONArray skus;
    public void  setSkusId(Integer id){
        skus = JSONArray.parseArray("[{\n" +
                "            \t\t\"id\": \"300477214"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477214\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 5035,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/f3c5a9a6-e5d2-4839-82ff-66db52d82c17/invincible-3-zoomx-%E9%80%8F%E6%B0%94%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-f7zsWM.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"樱花粉\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"39\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477215"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477215\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 5741,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/f3c5a9a6-e5d2-4839-82ff-66db52d82c17/invincible-3-zoomx-%E9%80%8F%E6%B0%94%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-f7zsWM.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"樱花粉\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"40\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477216"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477216\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 2449,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/be57a430-8d83-4546-901f-47dc2cd9de7c/pegasus-plus-%E8%80%90%E5%85%8B%E8%B6%85%E7%BA%A7%E9%A3%9E%E9%A9%AC%E7%94%B7%E5%AD%90%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-zZ2DS7.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"哑光黑\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"41\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477217"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477217\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 9783,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/be57a430-8d83-4546-901f-47dc2cd9de7c/pegasus-plus-%E8%80%90%E5%85%8B%E8%B6%85%E7%BA%A7%E9%A3%9E%E9%A9%AC%E7%94%B7%E5%AD%90%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-zZ2DS7.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"哑光黑\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"41\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477218"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477218\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 4056,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/d1413ff9-9dbc-44f7-b84c-a87c16a97f48/vaporfly-3-zoomx-%E7%A2%B3%E6%9D%BF%E5%85%AC%E8%B7%AF%E7%AB%9E%E9%80%9F%E9%A9%AC%E6%8B%89%E6%9D%BE%E8%B7%91%E6%AD%A5%E9%9E%8B-SBL7bP.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"雅杏色\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"40\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477219"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477219\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 3572,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/d1413ff9-9dbc-44f7-b84c-a87c16a97f48/vaporfly-3-zoomx-%E7%A2%B3%E6%9D%BF%E5%85%AC%E8%B7%AF%E7%AB%9E%E9%80%9F%E9%A9%AC%E6%8B%89%E6%9D%BE%E8%B7%91%E6%AD%A5%E9%9E%8B-SBL7bP.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"雅杏色\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"40\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477220"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477220\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 4826,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/32161662-e65c-466d-b119-391680c7eea5/maxfly-2-%E8%8B%8F%E7%82%B3%E6%B7%BB%E5%90%8C%E6%AC%BE%E7%94%B7%E5%AD%90%E7%94%B0%E5%BE%84%E9%92%89%E9%9E%8B-8bJ49q.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"沥青灰\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"40\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"id\": \"300477221"+id+"\",\n" +
                "            \t\t\"skuCode\": \"300477221\",\n" +
                "            \t\t\"price\": \"158.00\",\n" +
                "            \t\t\"oldPrice\": \"178.00\",\n" +
                "            \t\t\"inventory\": 963,\n" +
                "            \t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/32161662-e65c-466d-b119-391680c7eea5/maxfly-2-%E8%8B%8F%E7%82%B3%E6%B7%BB%E5%90%8C%E6%AC%BE%E7%94%B7%E5%AD%90%E7%94%B0%E5%BE%84%E9%92%89%E9%9E%8B-8bJ49q.png\",\n" +
                "            \t\t\"specs\": [{\n" +
                "            \t\t\t\t\"name\": \"颜色\",\n" +
                "            \t\t\t\t\"valueName\": \"沥青灰\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"尺码\",\n" +
                "            \t\t\t\t\"valueName\": \"40\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t}\n" +
                "            ]");
    }
    public void setSpecsId(Integer id){
        specs =  JSONArray.parseArray("[{\n" +
                "            \t\t\"name\": \"颜色\",\n" +
                "            \t\t\"id\": \"1482380727570006018"+id+"\",\n" +
                "            \t\t\"values\": [{\n" +
                "            \t\t\t\t\"name\": \"哑光黑\",\n" +
                "            \t\t\t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/be57a430-8d83-4546-901f-47dc2cd9de7c/pegasus-plus-%E8%80%90%E5%85%8B%E8%B6%85%E7%BA%A7%E9%A3%9E%E9%A9%AC%E7%94%B7%E5%AD%90%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-zZ2DS7.png\",\n" +
                "            \t\t\t\t\"desc\": \"销售属性颜色-哑光黑-规格属性图片\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"雅杏色\",\n" +
                "            \t\t\t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/d1413ff9-9dbc-44f7-b84c-a87c16a97f48/vaporfly-3-zoomx-%E7%A2%B3%E6%9D%BF%E5%85%AC%E8%B7%AF%E7%AB%9E%E9%80%9F%E9%A9%AC%E6%8B%89%E6%9D%BE%E8%B7%91%E6%AD%A5%E9%9E%8B-SBL7bP.png\",\n" +
                "            \t\t\t\t\"desc\": \"销售属性颜色-雅杏色-规格属性图片\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"沥青灰\",\n" +
                "            \t\t\t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/32161662-e65c-466d-b119-391680c7eea5/maxfly-2-%E8%8B%8F%E7%82%B3%E6%B7%BB%E5%90%8C%E6%AC%BE%E7%94%B7%E5%AD%90%E7%94%B0%E5%BE%84%E9%92%89%E9%9E%8B-8bJ49q.png\",\n" +
                "            \t\t\t\t\"desc\": \"销售属性颜色-沥青灰-规格属性图片\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"樱花粉\",\n" +
                "            \t\t\t\t\"picture\": \"https://static.nike.com.cn/a/images/c_limit,w_592,f_auto/t_product_v1/f3c5a9a6-e5d2-4839-82ff-66db52d82c17/invincible-3-zoomx-%E9%80%8F%E6%B0%94%E5%85%AC%E8%B7%AF%E8%B7%91%E6%AD%A5%E9%9E%8B-f7zsWM.png\",\n" +
                "            \t\t\t\t\"desc\": \"销售属性颜色-樱花粉-规格属性图片\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t},\n" +
                "            \t{\n" +
                "            \t\t\"name\": \"尺码\",\n" +
                "            \t\t\"id\": \"1482380727570006018"+id+"\",\n" +
                "            \t\t\"values\": [{\n" +
                "            \t\t\t\t\"name\": \"39\",\n" +
                "            \t\t\t\t\"picture\": null,\n" +
                "            \t\t\t\t\"desc\": \"销售属性尺码-39-规格属性图片\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"40\",\n" +
                "            \t\t\t\t\"picture\": null,\n" +
                "            \t\t\t\t\"desc\": \"销售属性尺码-40-规格属性图片\"\n" +
                "            \t\t\t},\n" +
                "            \t\t\t{\n" +
                "            \t\t\t\t\"name\": \"41\",\n" +
                "            \t\t\t\t\"picture\": null,\n" +
                "            \t\t\t\t\"desc\": \"销售属性尺码-41-规格属性图片\"\n" +
                "            \t\t\t}\n" +
                "            \t\t]\n" +
                "            \t}\n" +
                "            ]");
    }

}
